package com.aiyan.edu.framework.exception;

import com.aiyan.edu.framework.model.response.ResultCode;

/**
 * 自定义异常类型
 *
 * @author: zqzhou
 * @create: 2019/10/08 23:19
 **/
public class CustomException extends RuntimeException {

    private ResultCode resultCode;

    public CustomException(ResultCode resultCode) {
        this.resultCode = resultCode;
    }

    public ResultCode getResultCode() {
        return this.resultCode;
    }
}
